import React, { Component } from "react";
import { Animated, Text } from "react-native";
import View = Animated.View;

class Greeting extends Component<{ name: string }, {}> {
  render() {
    return <Text>Hello {this.props.name}</Text>;
  }
}

export default class LotsOfGreetings extends Component {
  render() {
    return (
      <View>
        <Greeting name={"xusheng"} />
        <Greeting name={"fangling"} />
      </View>
    );
  }
}
